package com.steshov.Everything.util;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;

public class App {

	public static final Logger log = Logger.getLogger("MyEverythingFileLogger");

	/**
	 * Method used to check request
	 * 
	 * @param request
	 * @return true if request is ajax
	 * @return false otherwise
	 */
	public static boolean isAjax(HttpServletRequest request) {
		return "XMLHttpRequest".equals(request.getHeader("X-Requested-With"));
	}
}
